FROM 10.6.73.197:9000/neta-sim/web/web-os:v1
COPY ./ /home/web/frontend/code
ENV VUE_APP_BASE_HOST 10.201.9.15
ENV VUE_APP_BASE_PORT 31081
ENV VUE_APP_VEDIO_HOST 10.201.9.15
ENV VUE_APP_VEDIO_PORT 31086
WORKDIR /home/web/frontend/code/script
RUN chmod +x build.sh
RUN bash build.sh
WORKDIR /home/web/frontend/code
RUN yarn build
RUN cp -r /home/web/frontend/code/dist/* /home/web/frontend/
RUN rm -rf /home/web/frontend/code
COPY ./script/nginx.conf /etc/nginx/nginx.conf
COPY ./script/run.sh /home/web/run.sh
RUN chmod +x /home/web/run.sh
EXPOSE 8088
WORKDIR /home/web